/**
 * 
 */

/**
 * @author Cyrille Boulanger
 *
 */

import world_2d.*;

public class game_of_life {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		World a_world = new World();
		
		while(true) {
			// Display the World
			a_world.display();
			
			if(a_world.b_is_evolving == false) {
				System.out.println("This world is not evolving anymore...");
				while(true);
			}
		
			// Next generation
			a_world.go_to_next_generation();
			
			// Wait 1.5 seconds
			try {
			    Thread.sleep(1500);
			} catch(InterruptedException ex) {
			    Thread.currentThread().interrupt();
			}
		}
	}
}
